package com.ics.atable.chat.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 语义模型表
 * @TableName semantic_model
 *
 * @author haohongbin
 */
@Data
@TableName(value ="semantic_model")
public class SemanticModel implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 原始名
     */
    @TableField(value = "origin_name")
    private String originName;

    /**
     * 同义词
     */
    @TableField(value = "synonyms")
    private String synonyms;

    /**
     * 召回次数
     */
    @TableField(value = "recall_count")
    private Integer recallCount;

    /**
     * 创建时间
     */
    @TableField(value = "created_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date createdTime;

    /**
     * 更新时间
     */
    @TableField(value = "updated_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date updatedTime;

    /**
     * 0 停用 1 启用
     */
    @TableField(value = "status")
    private Integer status;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}